﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ARS.Control.Custom.Entity.Widget;
using ARS.Control.Factory;

namespace ARS.Control.Custom.Entity.Fields
{
    public class HiddenInputField:Field
    {
        public HiddenInputField()
        {
            this.Visible = false;
            
            base.Widget = new Forms.CharForm();
        }

        public HiddenInputField(bool isVisible)
        {

        }

        Control.Interface.UserInfo user = null;

        protected Control.Interface.UserInfo GetLoginUsers()
        {
            if (user == null)
            {
                user = UserFactory.CreateUser().GetUserInfo();
            }
            return user;
        }


        /// <summary>
        /// 加载保存的值
        /// </summary>
        /// <returns></returns>
        public virtual void InitInputValue(EntityBaseControl entityBaseControl)
        {
            this.Value = this.DefaultValue;
        }
    }
}
